package com.ruicar.afs.cloud.account.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.contract.enums.BusinessType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/12 15:26
 */
@TableName("voucher_business_configuration")
@Data
public class VoucherBusinessConfiguration extends BaseEntity {

    @ApiModelProperty("业务事件")
    @NotBlank(message = "业务事件不能为空")
    private String business ;

    @ApiModelProperty("业务事件代码")
    @NotBlank(message = "业务事件代码不能为空")
    private String businessCode ;

    @ApiModelProperty("业务事件描述")
    @NotBlank(message = "业务事件描述不能为空")
    private String businessDescribe ;

    @ApiModelProperty("业务事件类型")
    @NotNull(message = "业务事件类型不能为空")
    private BusinessType businessType ;

    @ApiModelProperty("主业务事件代码")
    private String mainBusinessCode ;
}
